.header-con {
  width: 100%;
  position: absolute;
  height: 44px;
  line-height: 44px;
  top: 0;
  left: 0;
  z-index: 9;
  display: -webkit-box;
  display: -moz-box;
  background: linear-gradient(rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 20%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 80%, rgba(0, 0, 0, 0) 100%);
  &:before {
    position: absolute;
  }
}

.header-tit {
  width: 100%;
  margin: 0;
  padding: 0 25%;
  font-size: 1.6rem;
  font-weight: 400;
  text-align: center;
  display: block;
  word-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.header-tit-font {
  color: transparent;
}

.my-header, .scores-hd {
  background: transparent;
}

.header-bg {
  background: #ffd800;
}

.header-w-bg {
  background: #fff;
  &:after {
    position: absolute;
    left: 0;
    bottom: 0;
    content: "";
    display: block;
    width: 100%;
    border-bottom: 1px solid #ebebeb;
    transform: scaleY(0.5);
  }
}

.header-con {
  .local-city {
    width: 75px;
    position: relative;
    font-size: 1.6rem;
    color: #fff;
    padding: 0 8px 0 16px;
    span {
      text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    }
  }
  .show-city {
    display: none;
    position: absolute;
    left: 5px;
    top: 34px;
    &:before {
      content: "";
      display: block;
      width: 0;
      height: 0;
      border-bottom: 10px solid rgba(0, 0, 0, 0.5);
      border-right: 10px solid transparent;
      border-left: 10px solid transparent;
      margin-left: 25px;
    }
    ul {
      padding: 0 15px;
      width: 120px;
      background: rgba(0, 0, 0, 0.5);
    }
    li {
      height: 44px;
      line-height: 44px;
      font-size: 1.5rem;
      color: #fff;
      &:not(:last-child):after {
        content: "";
        display: block;
        width: 100%;
        border-bottom: 1px solid #fff;
        transform: scaleY(0.5);
        opacity: .5;
      }
    }
  }
  .search-box {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    position: relative;
    input {
      padding: 0 30px;
      margin-bottom: 1px;
      width: 100%;
      height: 28px;
      border: 0;
      border-radius: 14px;
      background: rgba(235, 235, 235, 0.7);
      box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
    }
    .w-search-icon {
      position: absolute;
      top: 12px;
      left: 10px;
    }
  }
  .scan-code-box {
    position: absolute;
    right: 84px;
    top: 0;
    padding: 12px;
  }
  .news-tip {
    padding: 13px;
    position: relative;
    span {
      position: absolute;
      top: 13px;
      right: 13px;
      width: 6px;
      height: 6px;
      background-color: #ff0629;
      border-radius: 50%;
    }
  }
  &.header-bg {
    .white-down-arrow {
      background-position: -210px -160px;
    }
    .local-city {
      color: #434343;
      span {
        text-shadow: none;
      }
    }
    .w-search-icon {
      background-position: -385px -4px;
    }
    .scan-code-icon {
      background-position: -225px -155px;
    }
    .news-icon {
      background-position: -250px -155px;
    }
    .search-box input {
      background: rgba(255, 255, 255, 0.8);
    }
  }
  .back-icon {
    background-position: -375px -55px;
  }
  &.header-bg .back-icon {
    background-position: -360px 8px;
  }
  &.header-w-bg .back-icon {
    background-position: -360px 9px;
  }
  .external-link-icon {
    position: absolute;
    top: 0;
    right: 45px;
    background-position: -108px -209px;
  }
  a:last-child .external-link-icon {
    right: 15px;
  }
  .screen-icon {
    position: absolute;
    top: 15px;
    right: 45px;
  }
  &.header-w-bg {
    .external-link-icon {
      background-position: -340px -31px;
    }
    > a .w-tel-icon-o {
      background-position: -182px -214px;
    }
  }
  > a .w-tel-icon-o {
    position: absolute;
    top: 0;
    right: 45px;
    margin: 10px 0 10px 10px;
  }
  .top-nav {
    position: absolute;
    top: 0;
    right: 8px;
    height: 44px;
    > i {
      width: 30px;
      height: 30px;
      display: inline-block;
      background: url(./assets/image/common.png) -145px -209px;
      background-size: 400px;
      margin-top: 6px;
    }
  }
  &.header-w-bg .top-nav > i {
    background-position: -367px -31px;
  }
  .top-nav div {
    display: none;
    position: absolute;
    top: 34px;
    right: 0;
    z-index: 1;
    &:before {
      content: "";
      display: block;
      width: 0;
      height: 0;
      border-bottom: 10px solid rgba(36, 36, 36, 0.8);
      border-right: 10px solid transparent;
      border-left: 10px solid transparent;
      margin-left: 95px;
    }
    ul {
      padding: 0 15px;
      width: 120px;
      background: rgba(36, 36, 36, 0.8);
    }
    li {
      a {
        display: block;
        height: 44px;
        line-height: 44px;
        font-size: 1.5rem;
        color: #fff;
      }
      &:not(:last-child):after {
        content: "";
        display: block;
        width: 100%;
        border-bottom: 1px solid #fff;
        transform: scaleY(0.5);
        opacity: .5;
      }
      i {
        margin-right: 6px;
        vertical-align: -3px;
      }
    }
  }
  .header-text {
    position: absolute;
    top: 0;
    right: 0;
    height: 44px;
    line-height: 44px;
    color: #444;
    padding: 0 16px;
  }
  .hd-search-icon {
    position: absolute;
    right: 10px;
    bottom: 2px;
  }
}

/*首页*/

.homepage-con {
  width: 100%;
  height: 100%;
  overflow: auto;
  position: absolute;
  overflow-scrolling: touch;
  -webkit-overflow-scrolling: touch;
}

.rotateY {
  -webkit-animation: rotateY 1s linear infinite;
  -moz-animation: rotateY 1s linear infinite;
  -ms-animation: rotateY 1s linear infinite;
  animation: rotateY 1s linear infinite;
}

.onscale {
  transform: scale(0.95);
}

@-webkit-keyframes rotateY {
  0% {
    -webkit-transform: rotateY(0deg);
  }

  50% {
    -webkit-transform: rotateY(180deg);
  }

  100% {
    -webkit-transform: rotateY(360deg);
  }
}


@-moz-keyframes rotateY {
  0% {
    -webkit-transform: rotateY(0deg);
  }

  50% {
    -webkit-transform: rotateY(180deg);
  }

  100% {
    -webkit-transform: rotateY(360deg);
  }
}


@-ms-keyframes rotateY {
  0% {
    -webkit-transform: rotateY(0deg);
  }

  50% {
    -webkit-transform: rotateY(180deg);
  }

  100% {
    -webkit-transform: rotateY(360deg);
  }
}


@keyframes rotateY {
  0% {
    -webkit-transform: rotateY(0deg);
  }

  50% {
    -webkit-transform: rotateY(180deg);
  }

  100% {
    -webkit-transform: rotateY(360deg);
  }
}


.nav-con {
  padding: 4px 6px 6px;
  background-color: #fff;
  overflow: auto;
  ul {
    padding: 0;
    margin: 0;
  }
  > ul > li {
    &:after {
      content: "";
      display: block;
      clear: both;
    }
    &:not(:last-child) {
      margin-bottom: 5px;
    }
  }
  img {
    width: 100%;
  }
  .gty-nav-list {
    div {
      float: left;
      width: 33.1%;
      margin-top: 1px;
    }
    .nav-list {
      float: left;
      width: 66.66%;
      li {
        width: 49.5%;
        margin: 1px 0 0 1px;
      }
    }
  }
}

.nav-list:after, .other-nav-list:after, .channel-list:after {
  content: "";
  display: block;
  clear: both;
}

.nav-list li {
  float: left;
  width: 33.1%;
  margin-right: 1px;
  &:last-child {
    margin-right: 0;
  }
}

.nav-con .other-nav-list {
  padding: 5px 0;
  margin-top: 11px;
  display: -webkit-box;
  display: -moz-box;
}

.other-nav-list li {
  width: 25%;
  text-align: center;
  color: #242424;
  font-size: 1.1rem;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  img {
    width: 28px;
    height: 28px;
  }
}

.channel-list {
  padding: 0;
  li {
    float: left;
    width: 50%;
    img {
      width: 100%;
    }
  }
}

.module-tit {
  text-align: center;
  height: 35px;
  span {
    font-size: 1.6rem;
    color: #313131;
    font-weight: bold;
  }
  i {
    margin: 0 5px -2px;
  }
}

.module-tit-l {
  display: inline-block;
  width: 35px;
  height: 28px;
  background: url(./assets/image/common.png) no-repeat 0 -322px;
  background-size: 400px;
}

.module-tit-r {
  display: inline-block;
  width: 24px;
  height: 28px;
  background: url(./assets/image/common.png) no-repeat -120px -322px;
  background-size: 400px;
}

.module-tit-seckill {
  display: inline-block;
  width: 145px;
  height: 28px;
  background: url(./assets/image/common.png) no-repeat 0 -322px;
  background-size: 400px;
}

.seckill-list {
  ul {
    padding: 0;
  }
  li {
    margin-bottom: 8px;
    position: relative;
    a {
      display: block;
    }
  }
  .sellout-tip {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    top: 50px;
    margin: auto;
    display: flex;
    width: 100px;
    height: 100px;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 50%;
    div {
      font-size: 2.4rem;
    }
    p {
      font-size: 1rem;
      i {
        display: inline-block;
        width: 10px;
        border-bottom: 1px solid #fff;
        margin: 0 2px;
        vertical-align: 2px;
      }
    }
  }
  .sell-out {
    &:before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(255, 255, 255, 0.6);
      z-index: 1;
    }
    .sellout-tip {
      display: flex;
    }
  }
}

.seckill-list-img {
  position: relative;
  img {
    width: 100%;
    height: 100%;
  }
}

.seckill-list-status {
  position: absolute;
  top: 0;
  left: 5px;
  padding: 2px 5px;
  background-color: #ffb12e;
  color: #fff;
  font-size: 1rem;
  i {
    position: absolute;
    bottom: -8px;
    display: block;
    width: 0;
    height: 0;
    border-top: 8px solid #ffb12e;
  }
  &.buying {
    background-color: #ff3b30;
    i {
      border-top: 8px solid #ff3b30;
    }
  }
  i {
    &:first-child {
      left: 0;
      border-right-style: solid;
      border-right-color: transparent;
    }
    &:last-child {
      right: 0;
      border-left-style: solid;
      border-left-color: transparent;
    }
  }
  p {
    margin-bottom: -5px;
  }
}

.seckill-list-times {
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 0 0 0 32px;
  background: rgba(0, 0, 0, 0.3);
  height: 24px;
  padding: 5px 5px 5px 18px;
  font-size: 1rem;
  color: #fff;
  label {
    display: inline-block;
    margin: 0 5px 0 0;
    line-height: 14px;
    vertical-align: top;
  }
  span {
    display: inline-block;
    width: 14px;
    height: 14px;
    line-height: 14px;
    background-color: #fff;
    color: #ff8c00;
    vertical-align: top;
    border-radius: 2px;
  }
  em {
    margin: 0 2px;
    font-style: normal;
  }
}

.seckill-list-tit {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 35px;
  line-height: 35px;
  color: #fff;
  font-size: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seckill-list-con {
  font-size: 1.2rem;
  color: #7d7d7d;
  padding: 8px 15px 15px;
  background-color: #fff;
  > div {
    display: -webkit-box;
    display: -moz-box;
  }
}

.seckill-list-date {
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seckill-list-price {
  display: inline-block;
  color: #ff8c00;
  margin-top: -10px;
  span {
    font-size: 2rem;
  }
  em {
    color: #7d7d7d;
    font-style: normal;
    text-decoration: line-through;
    margin-left: 3px;
  }
}

.seckill-list-con .seckill-list-num {
  display: none;
}

.seckill-list-num {
  div {
    height: 6px;
    border-radius: 6px;
    border: 1px solid #ff5555;
    margin: 8px 5px 0 0;
    em {
      display: block;
      height: 100%;
      background-color: #ff5555;
    }
  }
  span {
    font-size: 1rem;
    color: #7d7d7d;
    line-height: 20px;
    span {
      color: #fc0d1b;
    }
  }
}

.seckill-list .tospike {
  .seckill-list-price, .seckill-list-times span {
    color: #fc0d1b;
  }
  .seckill-list-num {
    display: flex;
  }
}

.ad-position {
  width: 100%;
  margin-top: 16px;
  img {
    width: 100%;
    height: 100%;
  }
}

.pro-list {
  ul {
    padding: 0;
    background-color: #fff;
  }
  li {
    &:not(:last-child) {
      margin-bottom: 1px;
      .pro-con:after {
        position: absolute;
        left: 0;
        bottom: 0;
        content: "";
        display: block;
        width: 100%;
        border-bottom: 1px solid #ebebeb;
        transform: scaleY(0.5);
      }
    }
    a {
      display: -webkit-box;
      display: -moz-box;
    }
  }
}

.pro-img {
  width: 150px;
  height: 100px;
  position: relative;
  img {
    width: 100%;
    height: 100%;
  }
}

.pro-con {
  height: 100px;
  position: relative;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  padding: 8px 16px 10px 8px;
}

.pro-type {
  position: absolute;
  left: 0;
  height: 18px;
  line-height: 18px;
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 0.9rem;
  top: 5px;
  border-radius: 0 9px 9px 0;
  padding: 0 8px;
}

.pro-comment {
  font-size: 0.9rem;
  color: #7d7d7d;
  position: absolute;
  bottom: 9px;
  span {
    margin-right: 2px;
  }
}

.pro-price {
  position: absolute;
  bottom: 5px;
  right: 16px;
  color: #ff8c00;
  font-size: 1.2rem;
  span {
    font-size: 2rem;
  }
}

.pro-tit {
  color: #000;
  font-size: 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  &.twolines {
    height: 32px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: initial;
    line-height: 16px;
  }
}

.pro-info {
  color: #7d7d7d;
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-tip {
  height: 22px;
  overflow: hidden;
  span {
    position: relative;
    display: inline-block;
    height: 14px;
    line-height: 14px;
    font-size: 0.9rem;
    padding: 0 5px;
    &:after {
      position: absolute;
      left: 0;
      top: 0;
      content: '';
      width: 200%;
      height: 200%;
      border-radius: 14px;
      -webkit-transform: scale(0.5);
      transform: scale(0.5);
      -webkit-transform-origin: top left;
      transform-origin: top left;
    }
  }
  .tip-col1 {
    color: #ff9b1f;
    &:after {
      border: 1px solid #ff9b1f;
    }
  }
  .tip-col2 {
    color: #00b9ef;
    &:after {
      border: 1px solid #00b9ef;
    }
  }
  .tip-col3 {
    color: #fb4e62;
    &:after {
      border: 1px solid #fb4e62;
    }
  }
  .tip-col4 {
    color: #595fd0;
    &:after {
      border: 1px solid #595fd0;
    }
  }
  .tip-col5 {
    color: #45b167;
    &:after {
      border: 1px solid #45b167;
    }
  }
}

.pro-level {
  margin: -2px 0 -4px;
  span {
    float: right;
    font-size: 1.2rem;
    color: #7d7d7d;
    margin: 2px 0 -3px;
  }
}

.kf-sel {
  height: 44px;
  padding: 11px 0 11px 16px;
  &:after {
    content: '';
    display: block;
    width: 24px;
    height: 22px;
    background: url(./assets/image/common.png) no-repeat -81px -589px;
    background-size: 400px;
  }
}

.kf-sel-popup {
  display: none;
  position: fixed;
  width: 100%;
  padding: 0 38px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 1001;
  > div {
    padding: 0 0 0 20px;
    background-color: #fff;
    border-radius: 8px;
  }
  a {
    position: relative;
    padding: 16px 0;
    &:not(:last-child):after {
      content: '';
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      border-bottom: 1px solid #ebebeb;
      transform: scaleY(0.5);
    }
  }
  h2 {
    color: #333;
    font-size: 1.6rem;
    line-height: 20px;
    margin-bottom: 1px;
  }
  p {
    color: #999;
    font-size: 1rem;
    line-height: 14px;
    overflow: initial;
  }
  i {
    display: block;
    width: 34px;
    height: 34px;
    margin-right: 10px;
    background: url(./assets/image/common.png) no-repeat;
    background-size: 400px;
  }
  .online-kf i {
    background-position: -325px -546px;
  }
  .phone-kf i {
    background-position: -367px -546px;
  }
}

.header-con {
  width: 100%;
  position: absolute;
  height: 44px;
  line-height: 44px;
  top: 0;
  left: 0;
  z-index: 9;
  display: -webkit-box;
  display: -moz-box;
  background: linear-gradient(rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 20%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 80%, rgba(0, 0, 0, 0) 100%);
  &:before {
    position: absolute;
  }
}

.header-tit {
  width: 100%;
  margin: 0;
  padding: 0 25%;
  font-size: 1.6rem;
  font-weight: 400;
  text-align: center;
  display: block;
  word-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.header-tit-font {
  color: transparent;
}

.my-header, .scores-hd {
  background: transparent;
}

.header-bg {
  background: #ffd800;
}

.header-w-bg {
  background: #fff;
  &:after {
    position: absolute;
    left: 0;
    bottom: 0;
    content: "";
    display: block;
    width: 100%;
    border-bottom: 1px solid #ebebeb;
    transform: scaleY(0.5);
  }
}

.header-con {
  .local-city {
    width: 75px;
    position: relative;
    font-size: 1.6rem;
    color: #fff;
    padding: 0 8px 0 16px;
    span {
      text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    }
  }
  .show-city {
    display: none;
    position: absolute;
    left: 5px;
    top: 34px;
    &:before {
      content: "";
      display: block;
      width: 0;
      height: 0;
      border-bottom: 10px solid rgba(0, 0, 0, 0.5);
      border-right: 10px solid transparent;
      border-left: 10px solid transparent;
      margin-left: 25px;
    }
    ul {
      padding: 0 15px;
      width: 120px;
      background: rgba(0, 0, 0, 0.5);
    }
    li {
      height: 44px;
      line-height: 44px;
      font-size: 1.5rem;
      color: #fff;
      &:not(:last-child):after {
        content: "";
        display: block;
        width: 100%;
        border-bottom: 1px solid #fff;
        transform: scaleY(0.5);
        opacity: .5;
      }
    }
  }
  .search-box {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    position: relative;
    input {
      padding: 0 30px;
      margin-bottom: 1px;
      width: 100%;
      height: 28px;
      border: 0;
      border-radius: 14px;
      background: rgba(235, 235, 235, 0.7);
      box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
    }
    .w-search-icon {
      position: absolute;
      top: 12px;
      left: 10px;
    }
  }
  .scan-code-box {
    position: absolute;
    right: 84px;
    top: 0;
    padding: 12px;
  }
  .news-tip {
    padding: 13px;
    position: relative;
    span {
      position: absolute;
      top: 13px;
      right: 13px;
      width: 6px;
      height: 6px;
      background-color: #ff0629;
      border-radius: 50%;
    }
  }
  &.header-bg {
    .white-down-arrow {
      background-position: -210px -160px;
    }
    .local-city {
      color: #434343;
      span {
        text-shadow: none;
      }
    }
    .w-search-icon {
      background-position: -385px -4px;
    }
    .scan-code-icon {
      background-position: -225px -155px;
    }
    .news-icon {
      background-position: -250px -155px;
    }
    .search-box input {
      background: rgba(255, 255, 255, 0.8);
    }
  }
  .back-icon {
    background-position: -375px -55px;
  }
  &.header-bg .back-icon {
    background-position: -360px 8px;
  }
  &.header-w-bg .back-icon {
    background-position: -360px 9px;
  }
  .external-link-icon {
    position: absolute;
    top: 0;
    right: 45px;
    background-position: -108px -209px;
  }
  a:last-child .external-link-icon {
    right: 15px;
  }
  .screen-icon {
    position: absolute;
    top: 15px;
    right: 45px;
  }
  &.header-w-bg {
    .external-link-icon {
      background-position: -340px -31px;
    }
    > a .w-tel-icon-o {
      background-position: -182px -214px;
    }
  }
  > a .w-tel-icon-o {
    position: absolute;
    top: 0;
    right: 45px;
    margin: 10px 0 10px 10px;
  }
  .top-nav {
    position: absolute;
    top: 0;
    right: 8px;
    height: 44px;
    > i {
      width: 30px;
      height: 30px;
      display: inline-block;
      background: url(./assets/image/common.png) -145px -209px;
      background-size: 400px;
      margin-top: 6px;
    }
  }
  &.header-w-bg .top-nav > i {
    background-position: -367px -31px;
  }
  .top-nav div {
    display: none;
    position: absolute;
    top: 34px;
    right: 0;
    z-index: 1;
    &:before {
      content: "";
      display: block;
      width: 0;
      height: 0;
      border-bottom: 10px solid rgba(36, 36, 36, 0.8);
      border-right: 10px solid transparent;
      border-left: 10px solid transparent;
      margin-left: 95px;
    }
    ul {
      padding: 0 15px;
      width: 120px;
      background: rgba(36, 36, 36, 0.8);
    }
    li {
      a {
        display: block;
        height: 44px;
        line-height: 44px;
        font-size: 1.5rem;
        color: #fff;
      }
      &:not(:last-child):after {
        content: "";
        display: block;
        width: 100%;
        border-bottom: 1px solid #fff;
        transform: scaleY(0.5);
        opacity: .5;
      }
      i {
        margin-right: 6px;
        vertical-align: -3px;
      }
    }
  }
  .header-text {
    position: absolute;
    top: 0;
    right: 0;
    height: 44px;
    line-height: 44px;
    color: #444;
    padding: 0 16px;
  }
  .hd-search-icon {
    position: absolute;
    right: 10px;
    bottom: 2px;
  }
}
